package cn.sportvip.dto.sport;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

import org.springframework.data.geo.Point;

import cn.sportvip.Sport.AGE;
import cn.sportvip.entity.sport.Coach;
import cn.sportvip.entity.sport.Event;

public class CourseDto implements Serializable {

	private static final long serialVersionUID = 1L;

	/**课程名称*/
	public String name;
	/**教学时间*/
	public String schoolTime;
	/** 一个课时价格 */
	public double price;
	/**教练id*/
	public int coachId;
	public String coachAvatar;
	/**教练名字*/
	public String coachName;
	public String[] phoneNum;
	/**age*/
	public Set<AGE> age;
	public String advantage;
	public String description;
	public String address;
	public int id;
	
	public Event event;
	public List<Coach> coaches;
	
	public String gymnasiumName;
	public int gymnasiumId;
	public Point location;
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CourseDto other = (CourseDto) obj;
		if (id != other.id)
			return false;
		return true;
	}
}
